package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Role entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "role", catalog = "imcdbserver")
public class Role implements java.io.Serializable {

	// Fields

	private RoleId id;

	// Constructors

	/** default constructor */
	public Role() {
	}

	/** full constructor */
	public Role(RoleId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "roleid", column = @Column(name = "roleid")),
			@AttributeOverride(name = "userole", column = @Column(name = "userole")),
			@AttributeOverride(name = "corpId", column = @Column(name = "corp_id")),
			@AttributeOverride(name = "state", column = @Column(name = "state")) })
	public RoleId getId() {
		return this.id;
	}

	public void setId(RoleId id) {
		this.id = id;
	}

}